const req = require('../../utils/requests.js')

Page({
  data: {
    datas:[]  
  },
  onLoad: function (options) {
    var that = this
    req.GET({
      action: '/wxapi/help/list/',
      complete: function(code, msg, data) {
        that.setData({
          datas: data
        })
      }
    })
  },
  openArticle: function(e) {
    var data = e.currentTarget.dataset.data
    wx.navigateTo({
      url: '/pages/web/web?id=' + data.id,
    })
  }
})